package com.biz.model.Hmodel.sys;
// default package

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * TSysUser entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "t_sys_user")
public class TSysUser implements java.io.Serializable {

	// Fields

	private String id;
	private Integer type=0;

	private String loginName;
	private String pwd;
	private String personName;
	private String openId;
	private String mapId;
	private String orgId;
	private String roles;
	private Integer sex;
	private String phone;
	private String email;
	private String fax;
	private String notes;
	private String coverId;
	private Double money=0.0;
	private Integer coupons=0;
	private Integer integral=0;
	private Integer grade=0;
	private Integer isLock;
	private Integer sorts;
	private Integer isdel=0;
	private Date createTime=new Date();
	private String accessToken;
	private Date atStarttime;
	private Date atEndtime;
	
	
	
	
	// Constructors

	/** default constructor */
	public TSysUser() {
	}

	/** full constructor */
	public TSysUser(Integer type, String loginName, String pwd,
			String personName, String openId, Integer sex, String phone,
			String email, String fax, String notes, String coverId,
			Double money, Integer coupons, Integer integral, Integer grade,
			Integer isLock, Integer sorts, Integer isdel, Date createTime,String accessToken,Date atStarttime,Date atEndtime) {
		this.type = type;
		this.loginName = loginName;
		this.pwd = pwd;
		this.personName = personName;
		this.openId = openId;
		this.sex = sex;
		this.phone = phone;
		this.email = email;
		this.fax = fax;
		this.notes = notes;
		this.coverId = coverId;
		this.money = money;
		this.coupons = coupons;
		this.integral = integral;
		this.grade = grade;
		this.isLock = isLock;
		this.sorts = sorts;
		this.isdel = isdel;
		this.createTime = createTime;
		this.accessToken = accessToken;
		this.atStarttime = atStarttime;
		this.atEndtime = atEndtime;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false, length = 50)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "type")
	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Column(name = "loginName", length = 50)
	public String getLoginName() {
		return this.loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	@Column(name = "pwd", length = 100)
	public String getPwd() {
		return this.pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	@Column(name = "personName", length = 50)
	public String getPersonName() {
		return this.personName;
	}

	public void setPersonName(String personName) {
		this.personName = personName;
	}

	@Column(name = "openId", length = 50)
	public String getOpenId() {
		return this.openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}
	
	@Column(name = "mapId", length = 50)
	public String getMapId() {
		return this.mapId;
	}

	public void setMapId(String mapId) {
		this.mapId = mapId;
	}
	
	
	@Column(name = "orgId", length = 50)
	public String getOrgId() {
		return this.orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}
	
	@Column(name = "roles", length = 355)
	public String getRoles() {
		return this.roles;
	}

	public void setRoles(String roles) {
		this.roles = roles;
	}

	@Column(name = "sex")
	public Integer getSex() {
		return this.sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	@Column(name = "phone", length = 32)
	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Column(name = "email", length = 32)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "fax")
	public String getFax() {
		return this.fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	@Column(name = "notes")
	public String getNotes() {
		return this.notes;
	}

	public void setNotes(String notes) {
		this.notes = notes;
	}

	@Column(name = "coverId", length = 300)
	public String getCoverId() {
		return this.coverId;
	}

	public void setCoverId(String coverId) {
		this.coverId = coverId;
	}

	@Column(name = "money", precision = 10)
	public Double getMoney() {
		return this.money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}

	@Column(name = "coupons")
	public Integer getCoupons() {
		return this.coupons;
	}

	public void setCoupons(Integer coupons) {
		this.coupons = coupons;
	}

	@Column(name = "integral")
	public Integer getIntegral() {
		return this.integral;
	}

	public void setIntegral(Integer integral) {
		this.integral = integral;
	}

	@Column(name = "grade")
	public Integer getGrade() {
		return this.grade;
	}

	public void setGrade(Integer grade) {
		this.grade = grade;
	}

	@Column(name = "isLock")
	public Integer getIsLock() {
		return this.isLock;
	}

	public void setIsLock(Integer isLock) {
		this.isLock = isLock;
	}

	@Column(name = "sorts")
	public Integer getSorts() {
		return this.sorts;
	}

	public void setSorts(Integer sorts) {
		this.sorts = sorts;
	}

	@Column(name = "isdel")
	public Integer getIsdel() {
		return this.isdel;
	}

	public void setIsdel(Integer isdel) {
		this.isdel = isdel;
	}

	@Column(name = "createTime", length = 19)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	
	@Column(name = "accessToken", length = 50)
	public String getAccessToken() {
		return accessToken;
	}

	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}

	@Column(name = "atStarttime", length = 19)
	public Date getAtStarttime() {
		return atStarttime;
	}

	public void setAtStarttime(Date atStarttime) {
		this.atStarttime = atStarttime;
	}

	@Column(name = "atEndtime", length = 19)
	public Date getAtEndtime() {
		return atEndtime;
	}

	public void setAtEndtime(Date atEndtime) {
		this.atEndtime = atEndtime;
	}

	
	

}